package everyday.luogu;

import java.util.Scanner;

/**
 * @Author: wenjingyuan
 * @Date: 2022/11/19/16:55
 * @Description:
 */
public class Num2 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int a=scanner.nextInt();
        Format(a);
       // Isshizhong(h,m);
    }

    private static void Format(int a) {
        int[] arr=new int[2];
        int b = a/60;
        int c=a%60;
        arr[0]=b;
        arr[1]=c;
        System.out.println(arr[0]);
        System.out.println(arr[1]);
    }

    /**
     * 判断是否为等差数列
     * @param h
     * @param m
     * @return
     */
//    private static boolean Isshizhong(int h,int m) {
//        int h1,h2,m1,m2;
//        if(h<0||m<0){
//            return false;
//        }
//        if (h == 0 && m == 0)return true;
//        h1=h/10;
//        h2=h%10;
//        m1=m/10;
//        m2=m%10;
//        int a=h2-h1;
//        if()
//    }
}
